/**
 * 
 */
package com.google.code.sip.ucenter.model;

import java.util.Date;

import com.google.code.morphia.annotations.Entity;
import com.google.code.morphia.annotations.Reference;

/**
 * 好友实体类
 * 
 * @author Liuye
 * 
 */
@Entity(noClassnameStored = true)
@SuppressWarnings("serial")
public class Friend extends BaseEntity {

	/**
	 * 用户
	 */
	@Reference
	private User user;

	/**
	 * 好友
	 */
	@Reference
	private User friend;

	/**
	 * 好友组
	 */
	@Reference
	private FriendGroup friendGroup;

	/**
	 * 备注
	 */
	private String remark;

	/**
	 * 创建日期
	 */
	private Date createdDate = new Date();

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public User getFriend() {
		return friend;
	}

	public void setFriend(User friend) {
		this.friend = friend;
	}

	/**
	 * @return the friendGroup
	 */
	public FriendGroup getFriendGroup() {
		return friendGroup;
	}

	public void setFriendGroup(FriendGroup friendGroup) {
		this.friendGroup = friendGroup;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Date getCreatedDate() {
		return createdDate;
	}

	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
}
